//
//  HMMeTableViewController.swift
//  WeiBo
//
//  Created by Feng on 2017/6/4.
//  Copyright © 2017年 feng. All rights reserved.
//

import UIKit

class HMMeTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin
        {
            setupPushButton()
        }
        else
        {
            visitorView?.updateInfoView(imageName: "visitordiscover_image_profile", labelText: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
    }
    
    func setupPushButton()
    {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(PushButtonClick))
    }
    
    func PushButtonClick()
    {
        let testVC = HMTestViewController()
        
        navigationController?.pushViewController(testVC, animated: true)
    }
    
}
